BTC|scanner|LONG|SHORT|30min STRATEGY- This strategy based on BTC|Scanner| v0.6b INDICATOR.
- Stop loss and take profit settings are available.
- This strategy can be used on a 30m timeframe and does not require fine tuning.
Detailed description of the strategy:
-According to the terms of the strategy:
-The initial deposit is $ 1000.
-The entry into the trade is carried out with the leverage from x3 to x8.
-Each entry/exit is shown by up/down arrows on the chart, the number of arrows shows the size of the leverage in the trade.
-Enter the trade with 100% of the deposit.
-All of the above suggests that with the input signal and the indication of the three arrows, an entry in the amount of$3000 will be made. If the shooter is 5, then$5000.
-Exit from the long/short position under the strategy conditions is carried out by 33% of the initial position volume on all TP (you can specify an unrealistic value of TP3, then the exit of 33% will be due only to an increase in the risk of further holding the position, but this can both increase profit and reduce it).
-To avoid distortion of the strategy indicators due to compound interest, it is recommended to take a period of a month to view statistics.
-The "Enter Confirm" field displays the confirmation of the trade, if several signals appear sequentially, the trade will be executed, and if the signal appears once, the trade will be skipped.
-The "ratio" field indicates the coefficient of change in activity on the current bar from the previous bar.
-The "Corner" field changes the angle of the stop loss correction depending on the time in the direction of reducing the loss.
-The "Short trigger" field indicates from which phase of activity you can open a short trade, conditionally this is a sinusoid with a lower limit of 0 and an upper limit of 100, but the sinusoid itself does not necessarily reach 0 and 100, the activity can stop at 80 and go towards 0 (initially the value 65 is specified).
-The "TP and Stop loss" fields are the percentage of profit / loss multiplied by 10. (the value 35 corresponds to 3.5%, 20-2% , and so on).
-The "cross action" field includes closing the trade when the activity sinusoid reaches the value of 99, regardless of any other calculations.
-The stop loss is displayed on the chart with orange and white dots.
The indicator and strategy can be applied not only to BTC , but it often has poor statistics on illiquid instruments.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- Эта стратегия основана на индикаторе BTC|Scanner| v0.6b.
- Доступны настройки стоп-лосса и тейк-профита.
- Эта стратегия может быть использована на 30-минутном таймфрейме и не требует тонкой настройки.
Подробное описание стратегии:
-Начальный депозит составляет 1000 долларов.
-Вход в сделку осуществляется с кредитным плечом от х3 до х8.
-Каждый вход/выход отображается стрелками вверх/вниз на графике, количество стрелок показывает размер кредитного плеча в сделке.
-Вход в сделку на 100% депозита.
-Все вышесказанное говорит о том, что с помощью входного сигнала и индикации трех стрелок будет совершен вход на сумму 3000 долларов. Если стрелок 5, то 5000 долларов.
-Выход из длинной/короткой позиции по условиям стратегии осуществляется на 33% от объема начальной позиции по всем ТП (можно указать нереальное значение ТП3, тогда выход на 33% будет обусловлен только увеличением риска дальнейшего удержания позиции, но это может как увеличить прибыль, так и уменьшить ее).
-Чтобы избежать искажения показателей стратегии из-за сложных процентов, рекомендуется использовать месячный период для просмотра статистики.
-В поле "Enter Confirm" отображается подтверждение сделки, если последовательно появится несколько сигналов, сделка будет выполнена, а если сигнал появится один раз, сделка будет пропущена.
-Поле "ratio" указывает коэффициент изменения активности на текущем баре по сравнению с предыдущим баром.
-Поле "Corner" изменяет угол коррекции стоп-лосса в зависимости от времени в направлении уменьшения убытка.
-Поле "Short trigger" указывает, с какой фазы активности вы можете открыть короткую сделку, условно это синусоида с нижней границей 0 и верхней границей 100, но сама синусоида не обязательно достигает 0 и 100, активность может остановиться на 80 и пойти в сторону 0 (изначально указано значение 65).
-Поля "TP и Stop loss" - это процент прибыли / убытка, умноженный на 10. (значение 35 соответствует 3,5%, 20-2% и так далее).
-Поле "cross action" включает закрытие сделки, когда синусоида активности достигает значения 99, независимо от любых других расчетов.
-Стоп-лосс отображается на графике оранжевыми и белыми точками.
Индикатор и стратегию можно применить не только к BTC , но зачастую он имеет плохую статистику на неликвидных инструментах.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Komut dosyalarını "stop loss" için ara
Bear & Bull Zone Signal StrategySince I love to mix and match, here is something fresh and that actually works on the breakout of Ethereum without losing your ass on lagging indicators.
It blends some of the nice parts of my previous scripts while moving to big boy pants with a twist on the Fibonacci retracement using SMA and EMA at multiple levels to do a sanity check.
Is it too good to be true? Nope, just what happens when a Solution Architect starts messing around with crypto and applies engineering and mathematics to the mix. You get a strategy that really doesn't have high profit losses when you tweak it just the right way.
What's the right tweak you ask?
1. Start with a 30 minute timeframe and set your window start date to the date the market began the bear or bull run
2. Make sure you can see your strategy performance window (not the graph one)
3. Set Stop Loss and Target Profit to 50%
4. Use your mouse wheel or up and down arrows and mess around with the RSI, go down one at a time but no lower than 7. Whichever value displayed the highest long or short gain is the one to pick.
5. Now select long or short only based on whichever one shows the highest gain.
6. Now go to K and D, leave K as 3 and check what happens when D is 4 or 5. Leave D at the value that gives you the highest gain.
7. Now go to EMA Fast and Slow Lengths. Leave Fast at 5 and check what happens when the Slow is moved up to 11 or 12, do the gains go up. If not, check what happens when Slow is moved down to 9, 8, or 7. Whichever gives you the highest gain, leave it there. Now go mess with the fast length, keep in mind that fast must always be less than slow. So check values down to 3 and up to 6. Same concept, mo money...leave it be.
8. Now go mess with the Target Profit, I start at 5, hit enter, then go to 7, hit enter, then 9...up by 2 until I get to 21 to make sure I don't hastily pick a low one and always keep in mind between which values the gain switched from high to low. For example, in this example I published at 11 it was $5k and at 13 it was $3700 for the gains. So after I got up to 21 I went back to 11 and started going up by 0.01 steps until the value dropped, which was at 11.19 so I set it at 11.18.
9. Now stop loss is trickier, you've maximized the gains, which means if you set the stop loss at a low value you will sacrifice gains. Typically by this point your loss is less than 10% with this script. So, my approach is to find the value where the stop loss doesn't change what I've tweaked already. In this example, I did the same start at 5 and go up by 2 and saw that when I went to 17 it stopped changing. So I started going back down by 0.5 and saw at 15.5 the gains went lower again. Now I started going back up in steps of 0.01 and at 15.98 it went back to the high gain I already tweaked for. I kept stop loss there and unleashed the strategy on ETH.
So far so good, no bad trades and it's been behaving pretty well.
Scalping Dips On Trend (by Coinrule)Coinrule's Community is an excellent source of inspiration for our trading strategies.
In these months of Bull Market, our traders opted mostly on buy-the-dips strategies, which resulted in great returns recently. But there has been an element that turned out to be the cause for deep division among the Community.
Is it advisable or not to use a stop-loss during a Bull Market?
This strategy comes with a large stop-loss to offer a safer alternative for those that are not used to trade with a downside protection.
Entry
The strategy buys only when the price is above the Moving Average 50 , making it less risky to buy the dip, which is set to 2%.
The preferred time frame is 1-hour.
The stop-loss is set to be quite loose to increase the chances of closing the trade in profit, yet protecting from unexpected larger drawdowns that could undermine the allocation's liquidity.
Exit
Stop loss: 10%
Take Profit: 3%
In times of Bull Market, such a trading system has a very high percentage of trades closed in profit (ranging between 70% to 80%), which makes it still overall profitable to have a stop-loss three times larger than the take profit.
Pro tip: use a larger stop-loss only when you expect to close in profit most of the trades!
The strategy assumes each order to trade 30% of the available capital and opens a trade at a time. A trading fee of 0.1% is taken into account.
Zeta Bank Nifty & Nifty50The Problems of Day Trading
Lot many indicators are made by thousands of traders all over the world, which give good or not so good signals.
Despite good signals, many times we end up in loss because we could not take entry or could not exit at appropriate time-point.
Sometimes even winning position also comes into loss if market takes back whatever you gained till a certain point.
Also, there are professional, office going people who can not take trades on their own during office-hours.
To solve all these problems, you need an automated strategy which could take trades, trail your stop loss up and exit when stop loss gets hit.
Strategy also lets you know how a certain formula performed over a period of time.
How this strategy works?
The strategy generates trades with 02 type of formulas:
1. It seeks price breaking away from support/resistance (up or down) which is calculated with the help of automatically detected pivot points.
2. It seeks reversal based upon RSI and Price Action.
If there are no open positions right now and a Buy/Sell signal comes, 1 lot is bought or sold.
This position is closed when either Stop Loss gets hit or when opposite signal comes.
What are other features of the strategy
1. You can set the session time when you want the strategy to take trades. For example, if you want to take trades only between 10:00 hrs and 14:00 hrs, that can be set in settings.
2. You can set up your own Stop Loss percentage, but the optimum value, as we found fit in backtesting, is set at 0.5%
3. There is a max. daily loss safeguard also which by default is set at 5%. It means if a series of losses happen during the day and your capital loss reaches this maximum loss value set by you, the strategy stops trading for that day.
4. There is an option to close all positions by End of Day. By default, this feature is disabled, but you can enable it if you don't want to carry forward your positions.
5. A label displayed at the last bar gives you cumulative profit or loss and daily profit/loss statistics.
VWMA_withATRstops_strategyThis strategy follows the trend when price is above VWMA indicator. I have modified entry and exit rules to get most out of it.
Instead of entering LONG when price crosses above VWMA, I have used RSI(14) of VWMA . that way it skips the false signals. (some extent)
ENTRY
========
1. VWMA setting is 33
2. When RSIofVwma is above 30 enter Long ( and also checks if price already broke the ATR Stop above line )
Stop Loss and Exits
==================
1. Exit is when price breaks the ATR stop loss
2. ATR setting is set as same VWMA Length and multiplier is 3.5
3. STOP Loss that I mentioned in the settings is being used to calculate the how many units can be purchased based on risk of capital value.
Note: There is NO hard stop loss. having above ATR stop loss works as Trailing stop loss
Warning
=======
For the educational purposes only
Fibonacci Bollinger Bands Strategy [QuantNomad]This strategy is modified Stanard Bollinger Bands Strategy. Instead of using standard deviation, I use a metric of how big is the range for the last X bars. Also, I’m using Fibonacci levels as multipliers for BB.
In this strategy you have a choice of 3 different Trailing Stop Loss types:
Standard % – standard percent based TSL
Fibonacci Level – close your position on another Fibonacci level or basis line of BB.
Parabolic SAR – Parabolic SAR adapted as trailing stop loss.
For Standard % and Parabolic SAR, you can use the “TSL Offset” parameter to set an initial offset for trailing stop loss.
Parameters
BB Length – Bolinger Bands Length
Fib Entry Level – Entry BB Multiplier level. Can be one of Fibonacci levels: 0.236, 0.382, 0.5, 0.618, 0.786, 1.000
Trailing SL Type – Type of Trailing Stop Loss used to close positions. Can be one of 3 types: “Standard %”, “Fibonacci Level”, “Parabolic SAR”
TSL Offset (%) – Initial offset for TSL. Applicable to “Standard %” and “Parabolic SAR”
TSL Fib Level – Fibonacci level used for “Fibonacci level” type of TSL
TSL PSAR Start / Increment / Maximum – parameters for PSAR type of TSL.
Strategy side – you can choose the side of the strategy. You can require strategy to go only Long, Short to Both sides.
From/To Day/Month/Year – you can use these parameters to set backtesting range to check the performance of your strategy on a specific range
It's a pro indicator, you can have access to it for a small fee. Link to my PRO indicators you can find in my signature.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
Trend spider glueThis script works on all market types.
This script will show you when to long, short, exit (stop loss) and Take profit.
Signals take into account various elements such as momentum, volume , moving averages and long term trend analysis. Stop loss function is included to show you when a signal is invalidated.
Use this strategy strictly, patiently and with discipline to prevent unneeded losses, this will result in long term consistent profits.
This script has been set to work best on the intraday time frames, however it also works on the longer timeframes. Use the settings tab to dilute the indicators to ur own market.
Lastly, this indicator will not give signals if the market is not trending.
PM me here to get a free trial for the indicator !
HAPPY TRADING <3
Version 2 will be coming soon which will integerate more elements to allow for more accurate signals and faster stop losses !
disclaimer: although this indicator is taking many elements into account and is highly accurate the market is never certain, we are not responsible for any losses the script may result in as we are not financial advisors.
MACD BF 🚀Customised MACD strategy with dynamic stop losses based on ATR.
Signals are generated when the delta value becomes positive or negative (when it crosses the zero line)
Stop losses are printed on the chart in yellow and orange. They are based on recent average True Range to allow for volatility.
INSTRUCTIONS
Green background = long
Red background = short
Yellow dotted line = stop loss placement for long
Orange dotted line = stop loss placement for short
White background = you have been stopped out, wait patiently for the next signal
Center of Gravity BF 🚀Thanks to HPotter for the code I based this strategy on.
Center of Gravity calculation is based here on a linear regression function using the least squares method.
We use this to calculate a channel consisting of 2 lines, green and red on the chart
This strategy employs a dynamic stop loss function that measures stop loss placement based on recent ATR.
How signals are generated:
Price closes above green line = Go Long
Price closes below red line = Go Short
Yellow dotted line = stop loss based on long entry
Orange dotted line = stop loss based on short entry
INSTRUCTIONS
Green background = Go Long, put your stop loss at the yellow dotted line
Red background = Go Short, put your stop loss at the orange dotted line
NB: The stop losses printed on the chart are calculated from the point of entry on a trade, if you make a different entry to what is indicated, the corresponding stop loss will be different to what the indicator displays.
Grid Long & Short Strategy [ trader_N08 ]The Grid Long & Short Strategy is a sophisticated algorithmic trading system designed to capitalize on market volatility while maintaining rigorous risk controls. Unlike conventional grid strategies that rely on static price intervals, this script introduces a dynamic framework that adapts to real-time market conditions using volatility measurements, trend confirmation, and momentum filters. By integrating multiple layers of technical analysis—including Exponential Moving Averages (EMAs), Relative Strength Index (RSI), Average True Range (ATR), and volume spikes—the strategy aims to optimize entry points, manage position sizing, and protect capital across both trending and range-bound markets.
Core Mechanics: How the Strategy Works
1. Trend Identification and Filtering
The strategy employs a dual EMA system to distinguish between bullish and bearish regimes:
A 200-period EMA acts as the primary trend filter, ensuring trades align with the broader market direction.
A 50-period EMA provides secondary confirmation, reducing false signals during choppy price action.
For long entries, the price must trade above both EMAs, while short entries require the price to remain below them. This dual-layer trend confirmation ensures trades align with higher-probability market movements, avoiding counter-trend risks inherent in traditional grid systems.
2. Momentum and Volume Confirmation
The strategy enhances signal quality by combining:
RSI Thresholds: Long entries trigger only when the 14-period RSI exceeds 40 (indicating upward momentum), while short entries activate when RSI falls below 60 (signaling downward pressure).
Volume Spikes: Trades execute solely when current volume surpasses 120% of the 20-period average, filtering out low-liquidity environments prone to whipsaws.
This hybrid approach mitigates the "grid trap" problem—where static systems accumulate losing positions during illiquid or low-momentum conditions.
Adaptive Grid Logic: Dynamic Position Sizing
3. ATR-Based Grid Spacing
The script calculates grid intervals using the 14-period ATR, a volatility metric that automatically widens or tightens entry spacing based on market conditions:
Base Grid Step: Initial entries use ATR × 1.2 to set the distance between grid levels.
Expanding Intervals: Subsequent entries expand by a factor of 1.2x (user-adjustable), ensuring larger position gaps during high volatility to avoid overexposure.
For example, in a calm market with an ATR of $10, the first grid step would be $12. If volatility spikes and the ATR rises to $15, the next step becomes $18, dynamically adjusting risk per trade.
4. Capped Grid Levels
To prevent uncontrolled risk accumulation, the strategy limits grid expansion to 1 level by default (user-configurable). This constraint ensures that even during extended adverse moves, maximum drawdown remains within predefined tolerances.
Multi-Layered Risk Management
5. Fixed Stop Loss and Take Profit
Each position incorporates:
Stop Loss: 0.3% below (long) or above (short) the entry price.
Take Profit: 4% above (long) or below (short) the entry price.
These thresholds provide a baseline 13:1 risk-reward ratio, aligning with professional trading standards.
6. ATR Trailing Stop
A dynamic exit mechanism locks in profits as trends develop:
The trailing stop follows price at a distance of ATR × 0.1, tightening during low volatility and expanding in volatile swings.
This hybrid approach allows winners to run while protecting against sudden reversals—a critical advancement over static grid systems.
Unique Value Proposition
7. Differentiators from Conventional Grid Strategies
Volatility-Responsive Grids: By tying grid spacing to ATR, the script avoids the fatal flaw of fixed-interval systems, which often fail during volatility spikes.
Volume-Filtered Entries: Eliminates 43% of false signals compared to volume-agnostic systems (backtested on 2021–2023 FX data).
Asymmetric Grid Expansion: The 1.2x expansion factor optimizes position sizing, reducing margin requirements by 22% in sideways markets while capturing 15% larger moves in trends.
Integrated Trend/Momentum Filters: Combines EMAs and RSI to achieve an 89% correlation with 4-hour chart trends, minimizing counter-trend traps.
8. Performance-Optimized Defaults
The strategy ships with parameters fine-tuned for:
Instruments: XAU/USD, BTC/USD, and major FX pairs.
Timeframes: 30-minute to 1-hour charts.
Account Sizes: $10,000 with 0.01% commission and 5 tick slippage settings.
Why This Strategy Warrits Investment
Traditional grid systems suffer from three critical flaws:
Static Grids: Fail to adapt to volatility shifts, leading to margin calls during black swan events.
Blind Entries: Execute trades regardless of trend or volume, resulting in 61% unprofitable grids in backtests.
Unmanaged Risk: Lack dynamic stops, exposing traders to unlimited downside.
This script addresses all three issues through:
Machine Learning-Inspired Design: The ATR/EMA/RSI/Volume hybrid mimics adaptive algorithms used by institutional quant funds.
Configurable Safeguards: Max grid levels, trailing stops, and volume filters provide 23% lower drawdowns than open-source alternatives.
Transparent Logic: Every component—from entry conditions to exit rules—is grounded in academically validated indicators (e.g., ATR for volatility, RSI for momentum, EMAs for trend).
For traders seeking a systematic approach to capitalize on volatility without reckless risk-taking, this strategy offers a mathematically disciplined framework refined through 1,000+ hours of live market testing.
Usage Guidelines
9. Optimal Deployment
Trending Markets: Enables participation in sustained moves via trailing stops and trend-aligned grids.
Volatile Ranges: Profits from oscillations via ATR-adjusted entries while avoiding overexposure.
News Events: Volume filters skip trades during erratic post-announcement price action.
10. Customization Options
While defaults suit most traders, key parameters can be adjusted:
Aggressive Mode: Increase Max Grid Levels to 3 and ATR Mult to 1.5 for high-volatility crypto.
Conservative Mode: Reduce Grid Expansion Factor to 1.1 and Fixed Stop Loss to 0.5% for forex pairs.
GStrategy XRP 4hRSI + Smart Money Trading Strategy
This strategy combines RSI (Relative Strength Index) with Smart Money detection to identify high-probability reversal trades in trending markets. It uses strict entry/exit rules with a 10% hard stop-loss to manage risk.
Strategy Logic
1. Entry Conditions
Long Entry (Buy):
RSI < 30 (Oversold condition)
Smart Money Confirmation:
Bullish candle (close > open)
Volume > 35-period SMA (unusual buying pressure)
Price hits a 5-bar low (potential reversal level)
Short Entry (Sell):
RSI > 70 (Overbought condition)
Smart Money Confirmation:
Bearish candle (close < open)
Volume > 20-period SMA (unusual selling pressure)
Price hits a 5-bar high (potential rejection level)
2. Exit Conditions
Long Exit: RSI ≥ 70 (Take profit at overbought)
Short Exit: RSI ≤ 40 (Take profit at mid-level)
Stop-Loss: Hard 10% stop on all trades
3. Position Management
No overlapping trades (only 1 position at a time).
Stop-loss visualized on the chart (red line).
Key Features
✅ RSI Filter: Avoids false reversals by requiring extreme RSI levels.
✅ Smart Money Detection: Confirms institutional activity via volume + price action.
✅ Asymmetric Exits:
Longs exit at RSI 70 (full overbought).
Shorts exit earlier at RSI 40 (conservative profit-taking).
✅ Strict Risk Control: 10% stop-loss prevents large drawdowns.
Indicators Used
RSI (14-period)
Volume SMA (20 for shorts, 35 for longs)
5-bar High/Low for price extremes.
System 0530 - Stoch RSI Strategy with ATR filterStrategy Description: System 0530 - Multi-Timeframe Stochastic RSI with ATR Filter
Overview:
This strategy, "System 0530," is designed to identify trading opportunities by leveraging the Stochastic RSI indicator across two different timeframes: a shorter timeframe for initial signal triggers (assumed to be the chart's current timeframe, e.g., 5-minute) and a longer timeframe (15-minute) for signal confirmation. It incorporates an ATR (Average True Range) filter to help ensure trades are taken during periods of adequate market volatility and includes a cooldown mechanism to prevent rapid, successive signals in the same direction. Trade exits are primarily handled by reversing signals.
How It Works:
1. Signal Initiation (e.g., 5-Minute Timeframe):
Long Signal Wait: A potential long entry is considered when the 5-minute Stochastic RSI %K line crosses above its %D line, AND the %K value at the time of the cross is at or below a user-defined oversold level (default: 30).
Short Signal Wait: A potential short entry is considered when the 5-minute Stochastic RSI %K line crosses below its %D line, AND the %K value at the time of the cross is at or above a user-defined overbought level (default: 70). When these conditions are met, the strategy enters a "waiting state" for confirmation from the 15-minute timeframe.
2. Signal Confirmation (15-Minute Timeframe):
Once in a waiting state, the strategy looks for confirmation on the 15-minute Stochastic RSI within a user-defined number of 5-minute bars (wait_window_5min_bars, default: 5 bars).
Long Confirmation:
The 15-minute Stochastic RSI %K must be greater than or equal to its %D line.
The 15-minute Stochastic RSI %K value must be below a user-defined threshold (stoch_15min_long_entry_level, default: 40).
Short Confirmation:
The 15-minute Stochastic RSI %K must be less than or equal to its %D line.
The 15-minute Stochastic RSI %K value must be above a user-defined threshold (stoch_15min_short_entry_level, default: 60).
3. Filters:
ATR Volatility Filter: If enabled, trades are only confirmed if the current ATR value (converted to ticks) is above a user-defined minimum threshold (min_atr_value_ticks). This helps to avoid taking signals during periods of very low market volatility. If the ATR condition is not met, the strategy continues to wait for the condition to be met within the confirmation window, provided other conditions still hold.
Signal Cooldown Filter: If enabled, after a signal is generated, the strategy will wait for a minimum number of bars (min_bars_between_signals) before allowing another signal in the same direction. This aims to reduce overtrading.
4. Entry and Exit Logic:
Entry: A strategy.entry() order is placed when all trigger, confirmation, and filter conditions are met.
Exit: This strategy primarily uses reversing signals for exits. For example, if a long position is open, a confirmed short signal will close the long position and open a new short position. There are no explicit take profit or stop loss orders programmed into this version of the script.
Key User-Adjustable Parameters:
Stochastic RSI Parameters: RSI Length, Stochastic RSI Length, %K Smoothing, %D Smoothing.
Signal Trigger & Confirmation:
5-minute %K trigger levels for long and short.
15-minute %K confirmation thresholds for long and short.
Wait window (in 5-minute bars) for 15-minute confirmation.
Filters:
Enable/disable and configure the Signal Cooldown filter (minimum bars between signals).
Enable/disable and configure the ATR Volatility filter (ATR period, minimum ATR value in ticks).
Strategy Parameters:
Leverage Multiplier (Note: This primarily affects theoretical position sizing for backtesting calculations in TradingView and does not simulate actual leveraged trading risks).
Recommendations for Users:
Thorough Backtesting: Test this strategy extensively on historical data for the instruments and timeframes you intend to trade.
Parameter Optimization: Experiment with different parameter settings to find what works best for your trading style and chosen markets. The default values are starting points and may not be optimal for all conditions.
Understand the Logic: Ensure you understand how each component (Stochastic RSI on different timeframes, ATR filter, cooldown) interacts to generate signals.
Risk Management: Since this version does not include explicit stop-loss orders, ensure you have a clear risk management plan in place if trading this strategy live. You might consider manually adding stop-loss orders through your broker or using TradingView's separate strategy order settings for stop-loss if applicable.
Disclaimer:
This strategy description is for informational purposes only and does not constitute financial advice. Past performance is not indicative of future results. Trading involves significant risk of loss. Always do your own research and understand the risks before trading.
SuperTrend Strategy with Trend-Based Exits🟩 SuperTrend Strategy with Trend-Based Exits
This is a fully automated trend-following strategy based on the popular SuperTrend indicator, enhanced with a position sizing algorithm tied to stop-loss distance and dynamic entry/exit rules. The strategy is designed for futures trading with an emphasis on sustainable risk, realistic backtesting, and transparent logic.
🧠 Concept and Methodology
The strategy uses the SuperTrend indicator, which is derived from ATR (Average True Range) and is widely used to capture medium- to long-term market trends.
Key features:
✅ Entries are triggered only when the SuperTrend direction changes (trend reversal).
✅ Exits are performed using a dynamic stop-loss placed at the SuperTrend line.
✅ Position size is automatically calculated based on the trader’s fixed dollar risk per trade and the current distance to the stop-loss.
✅ Rounding logic is included to ensure quantity is valid for the exchange’s lot size.
This strategy does not use any take-profit or classic trailing stop — the position is only closed when the trend reverses or the stop is hit by touching the SuperTrend line.
⚙️ Default Parameters
ATR Length: 92
Factor: 4.6
Risk per trade: $200 (2% of the default $10,000 capital)
Lot step: 0.01
Commission: 0.05%
Slippage: 5 ticks
These default parameters are not universal. They were optimized specifically for ETHUSDT at 15M timeframe and may not produce viable results on other pairs and timeframes.
Users are encouraged to customize the settings according to specific asset’s volatility, timeframe and other characteristics.
❗ These default settings yield meaningful backtesting results on ETHUSDT with a reasonable number of trades (180+) over 6-month period. If applied to other assets, results may vary significantly.
📈 Position Sizing Logic
The strategy uses a dynamic position sizing formula:
position_size = floor((risk_per_trade / stop_loss_distance) / lot_step) * lot_step
This ensures the trader always risks a fixed dollar amount per trade and never exceeds a sustainable equity exposure (recommended 2% or less).
✅ Realism in Backtesting
To ensure realistic and non-misleading backtest results, this strategy includes:
— Slippage and commission settings matching average exchange conditions (commission = 0.05%, slippage 5 ticks).
— Position sizing based on stop-loss distance (not fixed contract quantity).
— A fixed risk-per-trade model that adheres to responsible capital management principles.
— This is in compliance with TradingView's Script publishing rules and House Rules.
📌 How to Use
Apply the strategy to a clean chart (preferably 15M for ETHUSDT by default).
If using another asset, adjust:
- ATR Length
- Factor
- Risk per trade
- Qty step (lot precision for the symbol)
Avoid using with other indicators unless you understand their purpose.
Use the Strategy Tester to evaluate performance and optimize parameters.
⚠️ Disclaimer
This is not financial advice. Always perform forward testing and assess risk before deploying any strategy on live capital. The strategy is designed for educational and experimental use.
Three Candle Bullish Engulfing StrategyThe Three Candle Bullish Engulfing Strategy is a versatile, multi-mode trading system designed for TradingView, combining classic candlestick patterns with momentum confirmation and dynamic risk management. This script supports both swing trading and intraday approaches, as well as an optional RSI-based breakout mode for additional signal filtering.
Key Features:
Three Candle Pattern Detection:
The strategy identifies potential trend reversal points using a three-candle pattern:
The first candle is a strong bullish (or bearish) move.
The second candle is a doji or small-bodied candle, indicating indecision.
The third candle is a bullish (or bearish) engulfing candle that closes above (or below) the previous high (or low), confirming the reversal.
Flexible Trading Modes:
Swing Long Only: Enter long trades on bullish three-candle setups.
Intraday Long & Short: Trade both long and short based on bullish and bearish three-candle patterns, with automatic session-end exits.
RSI Breakout Mode: Enter long trades when the 1-hour RSI exceeds a user-defined threshold (default 80) and a bullish candle forms, with breakout confirmation and a fixed-percentage stop loss.
Visual Aids:
Plots the RSI breakout trigger price and stop loss on the chart for easy monitoring.
How It Works:
Three Candle Pattern Entries:
Long Entry: Triggered when a bullish candle is followed by a doji, then a bullish engulfing candle closes above the previous high.
Short Entry (Intraday only): Triggered by the inverse pattern—bearish candle, doji, then bearish engulfing candle closing below the previous low.
RSI Breakout Entries:
When the RSI on a higher timeframe (default 1 hour) exceeds the set threshold and a bullish candle forms, the script records a trigger price.
A long trade is entered if the price breaks above this trigger, with a stop loss set a fixed percentage below.
Exits:
Positions are closed if the trailing stop is hit, the session ends (for intraday mode), or the stop loss is triggered in RSI breakout mode.
In RSI breakout mode, positions are also closed if a new breakout trigger forms while in position.
Dual MACD Strategy [Js.k]Strategy Overview
The Dual MACD Strategy leverages two MACD indicators with different parameters to generate buy and sell signals. By combining the trend-following properties of MACD with specific entry/exit criteria, this strategy aims to capture significant price movements while effectively managing risk.
Entry and Exit Conditions
Long Entry: A buy signal is triggered when:
The histogram of MACD1 crosses above zero.
The histogram of MACD2 is positive and rising.
Short Entry: A sell signal is triggered when:
The histogram of MACD1 crosses below zero.
The histogram of MACD2 is negative and declining.
Risk Management
Stop Loss and Take Profit:
Stop Loss is set at 1% below the entry price for long positions and 1% above the entry price for short positions.
Take Profit is set at 1.5% above the entry price for long positions and 1.5% below the entry price for short positions.
Position Sizing: Each trade risks a maximum of 10% of account equity, keeping potential losses manageable and in line with standard trading practices.
Backtesting Results
The strategy is tested on BTCUSDT with a time frame of 1 hour, resulting in 200+ trades.
The initial capital for backtesting is set to $10,000, with a realistic commission of 0.04% and a slippage of 2 ticks.
Conclusion
This strategy is inspired by Dreadblitz's Double MACD Buy and Sell, as well as some YouTube videos. My purpose in redeveloping them into this strategy is to validate the practicality of the Double MACD. After multiple modifications, this is the final version. I believe its profitability is limited and may lead to losses; please do not use this strategy for live trading.
NY Opening Range Breakout - MA StopCore Concept
This strategy trades breakouts from the New York opening range (9:30-9:45 AM NY time) on intraday timeframes, designed for scalping and day trading.
Setup Requirements
Timeframe: Works on any timeframe under 15 minutes (1m, 2m, 3m, 5m, 10m)
Session: New York market hours
Range Period: 9:30-9:45 AM NY time (15-minute opening range)
Entry Rules
Long Entries:
Wait for a candle to close above the opening range high
Enter long on the next candle (before 12:00 PM NY time)
Must be above moving average if using MA-based take profit
Short Entries:
Wait for a candle to close below the opening range low
Enter short on the next candle (before 12:00 PM NY time)
Must be below moving average if using MA-based take profit
Risk Management
Stop Loss:
Long trades: Opening range low
Short trades: Opening range high
Take Profit Options:
Fixed Risk Reward: 1.5x the range size (customizable ratio)
Moving Average: Exit when price crosses back through MA
Both: Whichever comes first
Key Features
Trade Direction Options:
Long Only
Short Only
Both directions
Moving Average Filter:
Prevents entries that would immediately hit stop loss
Uses EMA/SMA/WMA/VWMA with customizable length
Acts as dynamic support/resistance
Time Restrictions:
No entries after 12:00 PM NY time (customizable cutoff)
One trade per direction per day
Daily reset of all variables
Visual Elements
Red/green lines showing opening range
Purple line for moving average
Entry and breakout signals with shapes
Take profit and stop loss levels plotted
Information table with current status
Strategy Logic Flow
Morning: Capture 9:30-9:45 range high/low
Wait: Monitor for breakout (previous candle close outside range)
Filter: Check MA condition if using MA-based exits
Enter: Trade on next candle after breakout
Manage: Exit at fixed TP, MA cross, or stop loss
Reset: Start fresh next trading day
This is a momentum-based breakout strategy that capitalizes on early market volatility while using the opening range as natural support/resistance levels.
SOXL Trend Surge v3.0.2 – Profit-Only RunnerSOXL Trend Surge v3.0.2 – Profit-Only Runner
This is a trend-following strategy built for leveraged ETFs like SOXL, designed to ride high-momentum waves with minimal interference. Unlike most short-term scalping scripts, this model allows trades to develop over multiple days to even several months, capitalizing on the full power of extended directional moves — all without using a stop-loss.
🔍 How It Works
Entry Logic:
Price is above the 200 EMA (long-term trend confirmation)
Supertrend is bullish (momentum confirmation)
ATR is rising (volatility expansion)
Volume is above its 20-bar average (liquidity filter)
Price is outside a small buffer zone from the 200 EMA (to avoid whipsaws)
Trades are restricted to market hours only (9 AM to 2 PM EST)
Cooldown of 15 bars after each exit to prevent overtrading
Exit Strategy:
Takes partial profit at +2× ATR if held for at least 2 bars
Rides the remaining position with a trailing stop at 1.5× ATR
No hard stop-loss — giving space for volatile pullbacks
⚙️ Strategy Settings
Initial Capital: $500
Risk per Trade: 100% of equity (fully allocated per entry)
Commission: 0.1%
Slippage: 1 tick
Recalculate after order is filled
Fill orders on bar close
Timeframe Optimized For: 45-minute chart
These parameters simulate an aggressive, high-volatility trading model meant for forward-testing compounding potential under realistic trading costs.
✅ What Makes This Unique
No stop-loss = fewer premature exits
Partial profit-taking helps lock in early wins
Trailing logic gives room to ride large multi-week moves
Uses strict filters (volume, ATR, EMA bias) to enter only during high-probability windows
Ideal for leveraged ETF swing or position traders looking to hold longer than the typical intraday or 2–3 day strategies
⚠️ Important Note
This is a high-risk, high-reward strategy meant for educational and testing purposes. Without a stop-loss, trades can experience deep drawdowns that may take weeks or even months to recover. Always test thoroughly and adjust position sizing to suit your risk tolerance. Past results do not guarantee future returns. Backtest range: May 8, 2020 – May 23, 2025
EMA Pullback Speed Strategy 📌 **Overview**
The **EMA Pullback Speed Strategy** is a trend-following approach that combines **price momentum** and **Exponential Moving Averages (EMA)**.
It aims to identify high-probability entry points during brief pullbacks within ongoing uptrends or downtrends.
The strategy evaluates **speed of price movement**, **relative position to dynamic EMA**, and **candlestick patterns** to determine ideal timing for entries.
One of the key concepts is checking whether the price has **“not pulled back too much”**, helping focus only on situations where the trend is likely to continue.
⚠️ This strategy is designed for educational and research purposes only. It does not guarantee future profits.
🧭 **Purpose**
This strategy addresses the common issue of **"jumping in too late during trends and taking unnecessary losses."**
By waiting for a healthy pullback and confirming signs of **trend resumption**, traders can enter with greater confidence and reduce false entries.
🎯 **Strategy Objectives**
* Enter in the direction of the prevailing trend to increase win rate
* Filter out false signals using pullback depth, speed, and candlestick confirmations
* Predefine Take-Profit (TP) and Stop-Loss (SL) levels for safer, rule-based trading
✨ **Key Features**
* **Dynamic EMA**: Reacts faster when price moves quickly, slower when market is calm – adapting to current momentum
* **Pullback Filter**: Avoids trades when price pulls back too far (e.g., more than 5%), indicating a trend may be weakening
* **Speed Check**: Measures how strongly the price returns to the trend using candlestick body speed (open-to-close range in ticks)
📊 **Trading Rules**
**■ Long Entry Conditions:**
* Current price is above the dynamic EMA (indicating uptrend)
* Price has pulled back toward the EMA (a "buy the dip" situation)
* Pullback depth is within the threshold (not excessive)
* Candlesticks show consecutive bullish closes and break the previous high
* Price speed is strong (positive movement with momentum)
**■ Short Entry Conditions:**
* Current price is below the dynamic EMA (indicating downtrend)
* Price has pulled back up toward the EMA (a "sell the rally" setup)
* Pullback is within range (not too deep)
* Candlesticks show consecutive bearish closes and break the previous low
* Price speed is negative (downward momentum confirmed)
**■ Exit Conditions (TP/SL):**
* **Take-Profit (TP):** Fixed 1.5% target above/below entry price
* **Stop-Loss (SL):** Based on recent price volatility, calculated using ATR × 4
💰 **Risk Management Parameters**
* Symbol & Timeframe: BTCUSD on 1-hour chart (H1)
* Test Capital: \$3000 (simulated account)
* Commission: 0.02%
* Slippage: 2 ticks (minimal execution lag)
* Max risk per trade: 5% of account balance
* Backtest Period: Aug 30, 2023 – May 9, 2025
* Profit Factor (PF): 1.965 (Net profit ÷ Net loss, including spreads & fees)
⚙️ **Trading Parameters & Indicator Settings**
* Maximum EMA Length: 50
* Accelerator Multiplier: 3.0
* Pullback Threshold: 5.0%
* ATR Period: 14
* ATR Multiplier (SL distance): 4.0
* Fixed TP: 1.5%
* Short-term EMA: 21
* Long-term EMA: 50
* Long Speed Threshold: ≥ 1000.0 (ticks)
* Short Speed Threshold: ≤ -1000.0 (ticks)
⚠️Adjustments are based on BTCUSD.
⚠️Forex and other currency pairs require separate adjustments.
🔧 **Strategy Improvements & Uniqueness**
Unlike basic moving average crossovers or RSI triggers, this strategy emphasizes **"momentum-supported pullbacks"**.
By combining dynamic EMA, speed checks, and candlestick signals, it captures trades **as if surfing the wave of a trend.**
Its built-in filters help **avoid overextended pullbacks**, which often signal the trend is ending – making it more robust than traditional trend-following systems.
✅ **Summary**
The **EMA Pullback Speed Strategy** is easy to understand, rule-based, and highly reproducible – ideal for both beginners and intermediate traders.
Because it shows **clear visual entry/exit points** on the chart, it’s also a great tool for practicing discretionary trading decisions.
⚠️ Past performance is not a guarantee of future results.
Always respect your Stop-Loss levels and manage your position size according to your risk tolerance.
SMC Strategy BTC 1H - OB/FVGGeneral Context
This strategy is based on Smart Money Concepts (SMC), in particular:
The bullish Break of Structure (BOS), indicating a possible reversal or continuation of an upward trend.
The detection of Order Blocks (OB): consolidation zones preceding the BOS where the "smart money" has likely accumulated positions.
The detection of Fair Value Gaps (FVG), also called imbalance zones where the price has "jumped" a level, creating a disequilibrium between buyers and sellers.
Strategy Mechanics
Bullish Break of Structure (BOS)
A bullish BOS is detected when the price breaks a previous swing high.
A swing high is defined as a local peak higher than the previous 4 peaks.
Order Block (OB)
A bearish candle (close < open) just before a bullish BOS is identified as an OB.
This OB is recorded with its high and low.
An "active" OB zone is maintained for a certain number of bars (the zoneTimeout parameter).
Fair Value Gap (FVG)
A bullish FVG is detected if the high of the candle two bars ago is lower than the low of the current candle.
This FVG zone is also recorded and remains active for zoneTimeout bars.
Long Entry
An entry is possible if the price returns into the active OB zone or FVG zone (depending on which parameters are enabled).
Entry is only allowed if no position is currently open (strategy.position_size == 0).
Risk Management
The stop loss is placed below the OB low, with a buffer based on a multiple of the ATR (Average True Range), adjustable via the atrFactor parameter.
The take profit is set according to an adjustable Risk/Reward ratio (rrRatio) relative to the stop loss to entry distance.
Adjustable Parameters
Enable/disable entries based on OB and/or FVG.
ATR multiplier for stop loss.
Risk/Reward ratio for take profit.
Duration of OB and FVG zone activation.
Visualization
The script displays:
BOS (Break of Structure) with a green label above the candles.
OB zones (in orange) and FVG zones (in light blue).
Entry signals (green triangle below the candle).
Stop loss (red line) and take profit (green line).
Strengths and Limitations
Strengths:
Based on solid Smart Money analysis concepts.
OB and FVG zones are natural potential reversal areas.
Adjustable parameters allow optimization for different market conditions.
Dynamic risk management via ATR.
Limitations:
Only takes long positions.
No trend filter (e.g., EMA), which may lead to false signals in sideways markets.
Fixed zone duration may not fit all situations.
No automatic optimization; testing with different parameters is necessary.
Summary
This strategy aims to capitalize on price retracements into key zones where "smart money" has acted (OB and FVG) just after a bullish Break of Structure (BOS) signal. It is simple, customizable, and can serve as a foundation for a more comprehensive strategy.
Funding Rate Strategy IndicatorDescription
Funding Rate Backtest Strategy uses smoothed funding‐rate dynamics to trigger long/short trades, enhanced by volume, session and daily‐limit filters, plus configurable profit-taking, stop-loss and trailing stops. It is designed for perpetual‐swap markets (e.g. BTCUSDT) where funding costs reflect market sentiment.
1. Strategy Logic & Components
Funding Rate Source
External: real exchange funding rate (e.g. Binance funding).
Custom: manual override value.
Simulate: sine‐wave test data between –3 and +3 to validate behavior.
Entry Conditions
LONG when fundingRate ≤ Long Threshold (default –2.0)
SHORT when fundingRate ≥ Short Threshold (default +2.0)
Volume Filter: requires a ≥ 5% increase vs prior bar.
4H Session Filter: only triggers on new 4-hour bars (optional).
Daily Cap: max 5 signals per calendar day (prevents overtrading).
Weekend Trading: on/off toggle for Saturday–Sunday.
Exit Conditions
Funding Normalization: exit LONG when fundingRate > –0.5; exit SHORT when fundingRate < +0.5.
Profit-Taking & Stop-Loss: default TP = 5%, SL = 3% of entry price.
Trailing Stop: optional 2% trailing (togglable).
2. Default Settings & Backtest Parameters
Account Size: $10,000
Position Sizing: 10% of equity per trade
Commission: 0.10% per side
Slippage: 0.05% per trade
Instrument & Timeframe: BTCUSDT perpetual, 1H bars, Jan 1 2022 – Dec 31 2023
Volume Increase: 5%
Session Filter: 4-hour bars only
Max Signals/Day: 5
Weekend Trading: Enabled
3. Backtest Results (Jan 2022–Dec 2023)
Total Trades: 142
Win Rate: 55.6%
Average R/R: 1 : 1.4
Max Drawdown: 14.8%
Net Return: +22.3%
These results assume realistic commission (0.1%) and slippage (0.05%). Past performance is not indicative of future results.
4. Default Properties Explained
Property Default Description
rateSourceChoice External Select funding‐rate data source
fundingRateLongThreshold –2.0 Funding ≤ –2% → LONG condition
fundingRateShortThreshold +2.0 Funding ≥ +2% → SHORT condition
volumeIncreasePercent 5.0 Min % volume increase vs prior bar
enableFourHourFilter true Only trigger on new 4H sessions
maxSignalsPerDay 5 Daily cap on entries
exitLongThreshold –0.5 Funding > –0.5% → exit LONG
exitShortThreshold +0.5 Funding < +0.5% → exit SHORT
takeProfitPercent 5.0 Fixed profit target in %
stopLossPercent 3.0 Fixed stop‐loss in %
useTrailingStop false Toggle trailing stop
trailingStopPercent 2.0 Trailing stop distance in %
allowWeekendTrading true Allow entries on Sat/Sun
5. How to Use
Add to Chart → search “Funding Rate Backtest.”
Configure Inputs → choose your funding‐rate feed, adjust thresholds, volume and session filters.
Position Sizing → defaults to 10% equity; adjust if desired.
Monitor Table & Signals → on‐chart shapes mark entries/exits; status table shows open P&L and signals count.
Risk Management → always verify commission/slippage settings; limit risk to sustainable levels (≤ 10% equity per trade).
6. Warnings & Disclaimer
This strategy is for educational purposes only. Real funding rates may differ—replace simulation or custom inputs with actual data. Always apply your own analysis and risk management. Past backtest performance does not guarantee future results.
Dskyz (DAFE) Adaptive Regime - Quant Machine ProDskyz (DAFE) Adaptive Regime - Quant Machine Pro:
Buckle up for the Dskyz (DAFE) Adaptive Regime - Quant Machine Pro, is a strategy that’s your ultimate edge for conquering futures markets like ES, MES, NQ, and MNQ. This isn’t just another script—it’s a quant-grade powerhouse, crafted with precision to adapt to market regimes, deliver multi-factor signals, and protect your capital with futures-tuned risk management. With its shimmering DAFE visuals, dual dashboards, and glowing watermark, it turns your charts into a cyberpunk command center, making trading as thrilling as it is profitable.
Unlike generic scripts clogging up the space, the Adaptive Regime is a DAFE original, built from the ground up to tackle the chaos of futures trading. It identifies market regimes (Trending, Range, Volatile, Quiet) using ADX, Bollinger Bands, and HTF indicators, then fires trades based on a weighted scoring system that blends candlestick patterns, RSI, MACD, and more. Add in dynamic stops, trailing exits, and a 5% drawdown circuit breaker, and you’ve got a system that’s as safe as it is aggressive. Whether you’re a newbie or a prop desk pro, this strat’s your ticket to outsmarting the markets. Let’s break down every detail and see why it’s a must-have.
Why Traders Need This Strategy
Futures markets are a gauntlet—fast moves, volatility spikes (like the April 28, 2025 NQ 1k-point drop), and institutional traps that punish the unprepared. Meanwhile, platforms are flooded with low-effort scripts that recycle old ideas with zero innovation. The Adaptive Regime stands tall, offering:
Adaptive Intelligence: Detects market regimes (Trending, Range, Volatile, Quiet) to optimize signals, unlike one-size-fits-all scripts.
Multi-Factor Precision: Combines candlestick patterns, MA trends, RSI, MACD, volume, and HTF confirmation for high-probability trades.
Futures-Optimized Risk: Calculates position sizes based on $ risk (default: $300), with ATR or fixed stops/TPs tailored for ES/MES.
Bulletproof Safety: 5% daily drawdown circuit breaker and trailing stops keep your account intact, even in chaos.
DAFE Visual Mastery: Pulsing Bollinger Band fills, dynamic SL/TP lines, and dual dashboards (metrics + position) make signals crystal-clear and charts a work of art.
Original Craftsmanship: A DAFE creation, built with community passion, not a rehashed clone of generic code.
Traders need this because it’s a complete, adaptive system that blends quant smarts, user-friendly design, and DAFE flair. It’s your edge to trade with confidence, cut through market noise, and leave the copycats in the dust.
Strategy Components
1. Market Regime Detection
The strategy’s brain is its ability to classify market conditions into five regimes, ensuring signals match the environment.
How It Works:
Trending (Regime 1): ADX > 20, fast/slow EMA spread > 0.3x ATR, HTF RSI > 50 or MACD bullish (htf_trend_bull/bear).
Range (Regime 2): ADX < 25, price range < 3% of close, no HTF trend.
Volatile (Regime 3): BB width > 1.5x avg, ATR > 1.2x avg, HTF RSI overbought/oversold.
Quiet (Regime 4): BB width < 0.8x avg, ATR < 0.9x avg.
Other (Regime 5): Default for unclear conditions.
Indicators: ADX (14), BB width (20), ATR (14, 50-bar SMA), HTF RSI (14, daily default), HTF MACD (12,26,9).
Why It’s Brilliant:
Regime detection adapts signals to market context, boosting win rates in trending or volatile conditions.
HTF RSI/MACD add a big-picture filter, rare in basic scripts.
Visualized via gradient background (green for Trending, orange for Range, red for Volatile, gray for Quiet, navy for Other).
2. Multi-Factor Signal Scoring
Entries are driven by a weighted scoring system that combines candlestick patterns, trend, momentum, and volume for robust signals.
Candlestick Patterns:
Bullish: Engulfing (0.5), hammer (0.4 in Range, 0.2 else), morning star (0.2), piercing (0.2), double bottom (0.3 in Volatile, 0.15 else). Must be near support (low ≤ 1.01x 20-bar low) with volume spike (>1.5x 20-bar avg).
Bearish: Engulfing (0.5), shooting star (0.4 in Range, 0.2 else), evening star (0.2), dark cloud (0.2), double top (0.3 in Volatile, 0.15 else). Must be near resistance (high ≥ 0.99x 20-bar high) with volume spike.
Logic: Patterns are weighted higher in specific regimes (e.g., hammer in Range, double bottom in Volatile).
Additional Factors:
Trend: Fast EMA (20) > slow EMA (50) + 0.5x ATR (trend_bull, +0.2); opposite for trend_bear.
RSI: RSI (14) < 30 (rsi_bull, +0.15); > 70 (rsi_bear, +0.15).
MACD: MACD line > signal (12,26,9, macd_bull, +0.15); opposite for macd_bear.
Volume: ATR > 1.2x 50-bar avg (vol_expansion, +0.1).
HTF Confirmation: HTF RSI < 70 and MACD bullish (htf_bull_confirm, +0.2); RSI > 30 and MACD bearish (htf_bear_confirm, +0.2).
Scoring:
bull_score = sum of bullish factors; bear_score = sum of bearish. Entry requires score ≥ 1.0.
Example: Bullish engulfing (0.5) + trend_bull (0.2) + rsi_bull (0.15) + htf_bull_confirm (0.2) = 1.05, triggers long.
Why It’s Brilliant:
Multi-factor scoring ensures signals are confirmed by multiple market dynamics, reducing false positives.
Regime-specific weights make patterns more relevant (e.g., hammers shine in Range markets).
HTF confirmation aligns with the big picture, a quant edge over simplistic scripts.
3. Futures-Tuned Risk Management
The risk system is built for futures, calculating position sizes based on $ risk and offering flexible stops/TPs.
Position Sizing:
Logic: Risk per trade (default: $300) ÷ (stop distance in points * point value) = contracts, capped at max_contracts (default: 5). Point value = tick value (e.g., $12.5 for ES) * ticks per point (4) * contract multiplier (1 for ES, 0.1 for MES).
Example: $300 risk, 8-point stop, ES ($50/point) → 0.75 contracts, rounded to 1.
Impact: Precise sizing prevents over-leverage, critical for micro contracts like MES.
Stops and Take-Profits:
Fixed: Default stop = 8 points, TP = 16 points (2:1 reward/risk).
ATR-Based: Stop = 1.5x ATR (default), TP = 3x ATR, enabled via use_atr_for_stops.
Logic: Stops set at swing low/high ± stop distance; TPs at 2x stop distance from entry.
Impact: ATR stops adapt to volatility, while fixed stops suit stable markets.
Trailing Stops:
Logic: Activates at 50% of TP distance. Trails at close ± 1.5x ATR (atr_multiplier). Longs: max(trail_stop_long, close - ATR * 1.5); shorts: min(trail_stop_short, close + ATR * 1.5).
Impact: Locks in profits during trends, a game-changer in volatile sessions.
Circuit Breaker:
Logic: Pauses trading if daily drawdown > 5% (daily_drawdown = (max_equity - equity) / max_equity).
Impact: Protects capital during black swan events (e.g., April 27, 2025 ES slippage).
Why It’s Brilliant:
Futures-specific inputs (tick value, multiplier) make it plug-and-play for ES/MES.
Trailing stops and circuit breaker add pro-level safety, rare in off-the-shelf scripts.
Flexible stops (ATR or fixed) suit different trading styles.
4. Trade Entry and Exit Logic
Entries and exits are precise, driven by bull_score/bear_score and protected by drawdown checks.
Entry Conditions:
Long: bull_score ≥ 1.0, no position (position_size <= 0), drawdown < 5% (not pause_trading). Calculates contracts, sets stop at swing low - stop points, TP at 2x stop distance.
Short: bear_score ≥ 1.0, position_size >= 0, drawdown < 5%. Stop at swing high + stop points, TP at 2x stop distance.
Logic: Tracks entry_regime for PNL arrays. Closes opposite positions before entering.
Exit Conditions:
Stop-Loss/Take-Profit: Hits stop or TP (strategy.exit).
Trailing Stop: Activates at 50% TP, trails by ATR * 1.5.
Emergency Exit: Closes if price breaches stop (close < long_stop_price or close > short_stop_price).
Reset: Clears stop/TP prices when flat (position_size = 0).
Why It’s Brilliant:
Score-based entries ensure multi-factor confirmation, filtering out weak signals.
Trailing stops maximize profits in trends, unlike static exits in basic scripts.
Emergency exits add an extra safety layer, critical for futures volatility.
5. DAFE Visuals
The visuals are pure DAFE magic, blending function with cyberpunk flair to make signals intuitive and charts stunning.
Shimmering Bollinger Band Fill:
Display: BB basis (20, white), upper/lower (green/red, 45% transparent). Fill pulses (30–50 alpha) by regime, with glow (60–95 alpha) near bands (close ≥ 0.995x upper or ≤ 1.005x lower).
Purpose: Highlights volatility and key levels with a futuristic glow.
Visuals make complex regimes and signals instantly clear, even for newbies.
Pulsing effects and regime-specific colors add a DAFE signature, setting it apart from generic scripts.
BB glow emphasizes tradeable levels, enhancing decision-making.
Chart Background (Regime Heatmap):
Green — Trending Market: Strong, sustained price movement in one direction. The market is in a trend phase—momentum follows through.
Orange — Range-Bound: Market is consolidating or moving sideways, with no clear up/down trend. Great for mean reversion setups.
Red — Volatile Regime: High volatility, heightened risk, and larger/faster price swings—trade with caution.
Gray — Quiet/Low Volatility: Market is calm and inactive, with small moves—often poor conditions for most strategies.
Navy — Other/Neutral: Regime is uncertain or mixed; signals may be less reliable.
Bollinger Bands Glow (Dynamic Fill):
Neon Red Glow — Warning!: Price is near or breaking above the upper band; momentum is overstretched, watch for overbought conditions or reversals.
Bright Green Glow — Opportunity!: Price is near or breaking below the lower band; market could be oversold, prime for bounce or reversal.
Trend Green Fill — Trending Regime: Fills between bands with green when the market is trending, showing clear momentum.
Gold/Yellow Fill — Range Regime: Fills with gold/aqua in range conditions, showing the market is sideways/oscillating.
Magenta/Red Fill — Volatility Spike: Fills with vivid magenta/red during highly volatile regimes.
Blue Fill — Neutral/Quiet: A soft blue glow for other or uncertain market states.
Moving Averages:
Display: Blue fast EMA (20), red slow EMA (50), 2px.
Purpose: Shows trend direction, with trend_dir requiring ATR-scaled spread.
Dynamic SL/TP Lines:
Display: Pulsing colors (red SL, green TP for Trending; yellow/orange for Range, etc.), 3px, with pulse_alpha for shimmer.
Purpose: Tracks stops/TPs in real-time, color-coded by regime.
6. Dual Dashboards
Two dashboards deliver real-time insights, making the strat a quant command center.
Bottom-Left Metrics Dashboard (2x13):
Metrics: Mode (Active/Paused), trend (Bullish/Bearish/Neutral), ATR, ATR avg, volume spike (YES/NO), RSI (value + Oversold/Overbought/Neutral), HTF RSI, HTF trend, last signal (Buy/Sell/None), regime, bull score.
Display: Black (29% transparent), purple title, color-coded (green for bullish, red for bearish).
Purpose: Consolidates market context and signal strength.
Top-Right Position Dashboard (2x7):
Metrics: Regime, position side (Long/Short/None), position PNL ($), SL, TP, daily PNL ($).
Display: Black (29% transparent), purple title, color-coded (lime for Long, red for Short).
Purpose: Tracks live trades and profitability.
Why It’s Brilliant:
Dual dashboards cover market context and trade status, a rare feature.
Color-coding and concise metrics guide beginners (e.g., green “Buy” = go).
Real-time PNL and SL/TP visibility empower disciplined trading.
7. Performance Tracking
Logic: Arrays (regime_pnl_long/short, regime_win/loss_long/short) track PNL and win/loss by regime (1–5). Updated on trade close (barstate.isconfirmed).
Purpose: Prepares for future adaptive thresholds (e.g., adjust bull_score min based on regime performance).
Why It’s Brilliant: Lays the groundwork for self-optimizing logic, a quant edge over static scripts.
Key Features
Regime-Adaptive: Optimizes signals for Trending, Range, Volatile, Quiet markets.
Futures-Optimized: Precise sizing for ES/MES with tick-based risk inputs.
Multi-Factor Signals: Candlestick patterns, RSI, MACD, and HTF confirmation for robust entries.
Dynamic Exits: ATR/fixed stops, 2:1 TPs, and trailing stops maximize profits.
Safe and Smart: 5% drawdown breaker and emergency exits protect capital.
DAFE Visuals: Shimmering BB fill, pulsing SL/TP, and dual dashboards.
Backtest-Ready: Fixed qty and tick calc for accurate historical testing.
How to Use
Add to Chart: Load on a 5min ES/MES chart in TradingView.
Configure Inputs: Set instrument (ES/MES), tick value ($12.5/$1.25), multiplier (1/0.1), risk ($300 default). Enable ATR stops for volatility.
Monitor Dashboards: Bottom-left for regime/signals, top-right for position/PNL.
Backtest: Run in strategy tester to compare regimes.
Live Trade: Connect to Tradovate or similar. Watch for slippage (e.g., April 27, 2025 ES issues).
Replay Test: Try April 28, 2025 NQ drop to see regime shifts and stops.
Disclaimer
Trading futures involves significant risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Backtest results may differ from live trading due to slippage, fees, or market conditions. Use this strategy at your own risk, and consult a financial advisor before trading. Dskyz (DAFE) Trading Systems is not responsible for any losses incurred.
Backtesting:
Frame: 2023-09-20 - 2025-04-29
Slippage: 3
Fee Typical Range (per side, per contract)
CME Exchange $1.14 – $1.20
Clearing $0.10 – $0.30
NFA Regulatory $0.02
Firm/Broker Commis. $0.25 – $0.80 (retail prop)
TOTAL $1.60 – $2.30 per side
Round Turn: (enter+exit) = $3.20 – $4.60 per contract
Final Notes
The Dskyz (DAFE) Adaptive Regime - Quant Machine Pro is more than a strategy—it’s a revolution. Crafted with DAFE’s signature precision, it rises above generic scripts with adaptive regimes, quant-grade signals, and visuals that make trading a thrill. Whether you’re scalping MES or swinging ES, this system empowers you to navigate markets with confidence and style. Join the DAFE crew, light up your charts, and let’s dominate the futures game!
(This publishing will most likely be taken down do to some miscellaneous rule about properly displaying charting symbols, or whatever. Once I've identified what part of the publishing they want to pick on, I'll adjust and repost.)
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
Created by Dskyz, powered by DAFE Trading Systems. Trade smart, trade bold.
EMA Crossover Strategy with Trailing Stop and AlertsPowerful EMA Crossover Strategy with Dynamic Trailing Stop and Real-Time Alerts
This strategy combines the simplicity and effectiveness of EMA crossovers with a dynamic trailing stop-loss mechanism for robust risk management.
**Key Features:**
* **EMA Crossover Signals:** Identifies potential trend changes using customizable short and long period Exponential Moving Averages.
* **Trailing Stop-Loss:** Automatically adjusts the stop-loss level as the price moves favorably, helping to protect profits and limit downside risk. The trailing stop percentage is fully adjustable.
* **Visual Buy/Sell Signals:** Clear buy (green upward label) and sell (red downward label) signals are plotted directly on the price chart.
* **Customizable Inputs:** Easily adjust the lengths of the short and long EMAs, as well as the trailing stop percentage, to optimize the strategy for different assets and timeframes.
* **Real-Time Alerts:** Receive instant alerts for buy and sell signals, ensuring you don't miss potential trading opportunities.
**How to Use:**
1. Add the strategy to your TradingView chart.
2. Customize the "Short EMA Length," "Long EMA Length," and "Trailing Stop Percentage" in the strategy's settings.
3. Enable alerts in TradingView to receive notifications when buy or sell signals are generated.
This strategy is intended to provide automated trading signals based on EMA crossovers with built-in risk management. Remember to backtest thoroughly on your chosen instruments and timeframes before using it for live trading.
#EMA
#Crossover
#TrailingStop
#Strategy
#TradingView
#TechnicalAnalysis
#Alerts
#TradingStrategy
Moving Average Shift WaveTrend StrategyMoving Average Shift WaveTrend Strategy
🧭 Overview
The Moving Average Shift WaveTrend Strategy is a trend-following and momentum-based trading system designed to be overlayed on TradingView charts. It executes trades based on the confluence of multiple technical conditions—volatility, session timing, trend direction, and oscillator momentum—to deliver logical and systematic trade entries and exits.
🎯 Strategy Objectives
Enter trades aligned with the prevailing long-term trend
Exit trades on confirmed momentum reversals
Avoid false signals using session timing and volatility filters
Apply structured risk management with automatic TP, SL, and trailing stops
⚙️ Key Features
Selectable MA types: SMA, EMA, SMMA (RMA), WMA, VWMA
Dual-filter logic using a custom oscillator and moving averages
Session and volatility filters to eliminate low-quality setups
Trailing stop, configurable Take Profit / Stop Loss logic
“In-wave flag” prevents overtrading within the same trend wave
Visual clarity with color-shifting candles and entry/exit markers
📈 Trading Rules
✅ Long Entry Conditions:
Price is above the selected MA
Oscillator is positive and rising
200-period EMA indicates an uptrend
ATR exceeds its median value (sufficient volatility)
Entry occurs between 09:00–17:00 (exchange time)
Not currently in an active wave
🔻 Short Entry Conditions:
Price is below the selected MA
Oscillator is negative and falling
200-period EMA indicates a downtrend
All other long-entry conditions are inverted
❌ Exit Conditions:
Take Profit or Stop Loss is hit
Opposing signals from oscillator and MA
Trailing stop is triggered
🛡️ Risk Management Parameters
Pair: ETH/USD
Timeframe: 4H
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pips
Risk per Trade: 2% of account equity (adjustable)
Total Trades: 224
Backtest Period: May 24, 2016 — April 7, 2025
Note: Risk parameters are fully customizable to suit your trading style and broker conditions.
🔧 Trading Parameters & Filters
Time Filter: Trades allowed only between 09:00–17:00 (exchange time)
Volatility Filter: ATR must be above its median value
Trend Filter: Long-term 200-period EMA
📊 Technical Settings
Moving Average
Type: SMA
Length: 40
Source: hl2
Oscillator
Length: 15
Threshold: 0.5
Risk Management
Take Profit: 1.5%
Stop Loss: 1.0%
Trailing Stop: 1.0%
👁️ Visual Support
MA and oscillator color changes indicate directional bias
Clear chart markers show entry and exit points
Trailing stops and risk controls are transparently managed
🚀 Strategy Improvements & Uniqueness
In-wave flag avoids repeated entries within the same trend phase
Filtering based on time, volatility, and trend ensures higher-quality trades
Dynamic high/low tracking allows precise trailing stop placement
Fully rule-based execution reduces emotional decision-making
💡 Inspirations & Attribution
This strategy is inspired by the excellent concept from:
ChartPrime – “Moving Average Shift”
It expands on the original idea with advanced trade filters and trailing logic.
Source reference:
📌 Summary
The Moving Average Shift WaveTrend Strategy offers a rule-based, reliable approach to trend trading. By combining trend and momentum filters with robust risk controls, it provides a consistent framework suitable for various market conditions and trading styles.
⚠️ Disclaimer
This script is for educational purposes only. Trading involves risk. Always use proper backtesting and risk evaluation before applying in live markets.